#ifndef __WDTXLIST_H_
#define __WDTXLIST_H_

#include <string.h>
#include "wdtx.h"

typedef struct listStruct* List;

List List_newInstance(u8 sizeOfNode, u16 maxLength);
void List_destroy(List list);
u16 List_getLength(List list);
u16 List_getMaxLength(List list);
void List_add(List list, const void* value);
void List_set(List list, u16 position, const void* value);
void* List_get(List list,u16 position);
void* List_toArray(List list);
void List_moveTo(List list, u16 position);
bool List_hasNext(List list);
void* List_getNext(List list);

#endif // __WDTXLIST_H_
